<?php
/**
 * Larfree Api类
 * @author xiao
 */
namespace App\Http\Controllers\Api\User;
use Illuminate\Http\Request;
use Larfree\Controllers\ApisController as Controller;
use App\Models\User\UserCollect;
class CollectController extends Controller
{
    public function __construct(UserCollect $model)
    {
        $this->model = $model;
        parent::__construct();
    }

    public  function  index(Request $request){
           $userID=getLoginUserID();
           $this->model=$this->model->where('user_id',$userID);
           return parent::index($request);
    }
}